package cn.itcast.zt.java8.model.chain.demo1;

/**
 * 责任链抽象接口
 * @author zhangtian105
 * @date 2023/2/1
 * @apiNote
 */
public abstract class UserLoginCheckFilter {
    private UserLoginCheckFilter nextFilter;

    public UserLoginCheckFilter(UserLoginCheckFilter userLoginCheckFilter) {
        this.nextFilter = userLoginCheckFilter ;
    }

    public UserLoginCheckFilter getNextFilter() {
        return nextFilter;
    }

    public abstract boolean process(UserWrapper userWrapper);
}
